package service;

import org.springframework.stereotype.Service;

@Service
public class KF2 {
    public static String getAnswer(String question) {
        String answer;

        // 根据问题选择对应的回答
        switch (question) {
            case "你好":
                answer = "你好，有什么可以帮到您的吗？";
                break;
            case "财税分为哪几类":
                answer = "流转税类、所得税类、财产税类、资源税类和行为税类五种类型。";
                break;
            case "最近要上什么课":
                answer = "财税热点知多D。";
                break;
            default:
                answer = "抱歉，我不明白你的问题，请重新提问。";
                break;
        }

        return answer;
    }
}
